<include file="Public:header" />
<!-- main content start-->
<div class="main-content" >

    <!-- header section start-->
    <div class="header-section">

        <!--toggle button start-->
        <a class="toggle-btn"><i class="fa fa-bars"></i></a>
        <!--toggle button end-->
        <!--notification menu start -->
        <div class="menu-right">
            <ul class="notification-menu">
                <li>
                    <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        <img src="__IMG__/photos/user-avatar.png" alt="" />
                        {$shopname}
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                        <li><a href="{:U('Shopadmin/Login/info')}"><i class="fa fa-user"></i>  个人信息</a></li>
                        <li><a href="{:U('Shopadmin/Login/changePwd')}"><i class="fa fa-cog"></i>  修改密码</a></li>
                        <li><a href="{:U('Shopadmin/Login/logout')}"><i class="fa fa-cog"></i>  退出登录</a></li>
                    </ul>
                </li>

            </ul>
        </div>
        <!--notification menu end -->

    </div>
    <!-- header section end-->
    <!-- page heading start-->
    <div class="page-heading">
        <h3>
            客服管理
        </h3>
        <ul class="breadcrumb">
            <li>
                <a href="#">首页</a>
            </li>
            <li> 客服管理 </li>
            <li class="active"> 修改客服信息 </li>
        </ul>
    </div>
    <!-- page heading end-->
    <!--body wrapper start-->
    <div class="wrapper">
        <section class="panel">
            <header class="panel-heading">
                修改客服信息
            </header>
            <div class="panel-body">
                <form class="form-horizontal" role="form" enctype="multipart/form-data" method="post" >
                    <input type="hidden" name="id" id="id" value="{$info.id}">

                    <div class="form-group">
                        <label class="col-md-2 col-sm-2 control-label">客服</label>
                        <div class="col-md-6 col-sm-6">
                            <select name="kefu" class="form-control">
                                <volist name="kefu" id="kf">
                                    <option value="{$kf.id}">{$kf.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 col-sm-2 control-label">员工</label>
                        <div class="col-md-6 col-sm-6">
                            <select name="member" class="form-control">
                                <volist name="member" id="m">
                                    <option value="{$m.id}">{$m.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 col-sm-2 control-label">客户</label>
                        <div class="col-md-6 col-sm-6">
                            <select name="customer" class="form-control">
                                <volist name="customer" id="c">
                                    <option value="{$c.id}">{$c.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 col-sm-2 control-label">客户联系人</label>
                        <div class="col-md-6 col-sm-6">
                            <input type="text" name="cus_name" id="cus_name" class="form-control" value="{$info.cus_name}" placeholder="联系人">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 col-sm-2 control-label">手机号码</label>
                        <div class="col-md-6 col-sm-6">
                            <input type="text" name="cus_phone" id="cus_phone" class="form-control" value="{$info.cus_phone}" placeholder="手机号码">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 col-sm-2 control-label">地址</label>
                        <div class="col-md-6 col-sm-6">
                            <input type="text" name="cus_address" id="cus_address" class="form-control" value="{$info.cus_address}" placeholder="地址">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 col-sm-2 control-label">类型</label>
                        <div class="col-md-6 col-sm-6">
                            <select name="type" class="form-control">
                                <option value="1">维修</option>
                                <option value="2">移机</option>
                                <option value="3">退货</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 col-sm-2 control-label">备注</label>
                        <div class="col-md-6 col-sm-6">
                            <input type="text" name="content" id="content" class="form-control" value="{$info.content}" placeholder="备注">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 col-sm-2 control-label">状态</label>
                        <div class="col-md-6 col-sm-6">
                            <select name="status" class="form-control">
                                <option value="0">待派工</option>
                                <option value="1">已派工</option>
                                <option value="2">已完成</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-offset-2 col-md-6 col-sm-6">
                            <button type="submit" class="btn btn-primary" onclick="return checkout()">确认修改</button>
                            <button type="button" class="btn btn-primary" onclick="history.go(-1)">返回</button>
                        </div>
                    </div>

                </form>
            </div>
        </section>


    </div>
    <!--body wrapper end-->
    <!-- main content end-->
    <script>
        function checkout(){
            if($("#cus_name").val()==""){
                toast("联系人不得为空",false);
                return false;
            }
            if($("#cus_phone").val()==""){
                toast("手机号码不得为空",false);
                return false;
            }
            if($("#cus_address").val()==""){
                toast("地址不得为空",false);
                return false;
            }
            return true;
        }
    </script>
    <include file="Public:footer" />